package com.symria.system.scan;

import java.util.TimerTask;

import com.symria.framework.util.SpringUtil;
import com.symria.role.util.Logger;
import com.symria.server.bo.campaign.CampaignService;

public class DailyJober extends TimerTask {

	public static final Logger logger = Logger.getLogger(DailyJober.class);
	public static  DailyJober jober;
	
	public CampaignService campaignService;
	
	public static DailyJober getInstance(){
		if(null==jober){
			jober=new DailyJober();	
		}
		return jober;
	}
	
	@Override
	public void run() {
		logger.logInfo("begin run daily jober...............");
		campaignService=SpringUtil.getBean("campaignService",CampaignService.class);
		campaignService.savePackDateReport();
		logger.logInfo("savePackDateReport  done");
	}

}
